﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="admin_login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>代码管家(www.codehousekeeper.com)后台管理</title>
    <style type="text/css">
        .tb
        {
            margin-left: 10px;
        }
        p
        {
            margin: 5px;
            padding: 0px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <fieldset style="width: 650px; margin-left: 300px; margin-top: 150px;">
            <legend>用户登陆</legend>
            <p>
                姓&nbsp;&nbsp;&nbsp;&nbsp;名<font color="red">*</font>：
                <asp:TextBox ID="tbName" runat="server" Text="admin" Width="200px" CssClass="tb"
                    ToolTip="用户名只能字母、数字和下画划线。"></asp:TextBox>
                <asp:RequiredFieldValidator ID="UserNameRequiredValidator" runat="server" ErrorMessage="*姓名不能为空。"
                    ControlToValidate="tbName"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="UserNameValidator" runat="server" ControlToValidate="tbName"
                    ErrorMessage="用户名只能字母、数字和下画划线。" ValidationExpression="[\w ]*"></asp:RegularExpressionValidator></p>
            <p>
                密&nbsp;&nbsp;&nbsp;&nbsp;码<font color="red">*</font>：<asp:TextBox ID="tbPassword"
                    runat="server" Width="200px" CssClass="tb" MaxLength="6" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="PasswordRequiredValidator" runat="server" ErrorMessage="*密码不能为空。" ControlToValidate="tbPassword"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="PasswordValidator" runat="server" ControlToValidate="tbPassword" ErrorMessage='输入了不符合要求的字符。' ValidationExpression='[\w !"$%&amp;/()=\-?\*]*'></asp:RegularExpressionValidator>
            </p>
            <p>
                验证码<font color="red">*</font>：<asp:TextBox ID="tbVerifyCode" runat="server" Width="200px"
                    CssClass="tb" ToolTip="验证码不区分大小写"></asp:TextBox><asp:Label ID="lbPrompt" runat="server"
                        Visible="false"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*验证码不能为空。" ControlToValidate="tbVerifyCode"></asp:RequiredFieldValidator></p>
            <p>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img id="imgVerify" title="看不清？点击更换" src="../Other/VerifyCode.aspx?"
                    alt="yy看不清？点击更换" onclick="this.src=this.src+'?'" /></p>
            <p>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button
                    ID="btnLogin" runat="server" Text="登录" OnClick="btnLogin_Click" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button
                    ID="btnCancel" runat="server" Text="取消" /></p>
            <p>
            </p>
        </fieldset>
    </div>
    </form>
</body>
</html>
